﻿using AVCUMPlatform.DAL.Interface;
using AVCUMPlatform.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AVCUMPlatform.BLL.Interface;
using AVCUMPlatform.Entities;

namespace AVCUMPlatform.BLL.Implement
{
    internal class MessageTypesBLL : BaseBLL<MessageTypes>, IMessageTypesBLL
    {
        /// <summary>
        /// 消息类型DAL
        /// </summary>
        private IMessageTypesDAL _messageTypesDAL;
        private IMessageTypesDAL messageTypesDAL
        {
            get
            {
                if (_messageTypesDAL == null)
                {
                    _messageTypesDAL = DALContainer.Resolve<IMessageTypesDAL>();
                }
                return _messageTypesDAL;
            }
        }
        public override void SetDal()
        {
            Dal = messageTypesDAL;
        }
    }
}
